<template>
  <div>
    <van-nav-bar
      title="秒杀活动"
      left-arrow
      @click-left="onClickLeft"
    />
    <van-search
      v-model="searchValue"
      show-action
      placeholder="请输入搜索关键词"
    >
    @search="onSearch"
      <template #action >
        <div>搜索</div>
      </template>
    </van-search>
  </div>
</template>

<script>
export default {
  data(){
    return {
      searchValue:'',
    }
  },
  props:{

  },
  methods:{
    onClickLeft() {
      this.$router.push('/home')
    },
//     trasitionValue(){
//       if(this.searchValue!=''){
//         this.$router.push(`/searchValue?q=${this.searchValue}`);
//       }
// }

}
}
</script>

<style lang="less">
.van-nav-bar__arrow {
    margin-right: 4px;
    font-size: 25px;
  }
  .van-nav-bar__title {
    max-width: 60%;
    margin: 0 auto;
    color: #323233;
    font-weight: 500;
    font-size: 20px;
  }
  .van-nav-bar .van-icon {
    color: #151515;
  }
</style>